package com.googlecode.spruce.web.admin.dto;

import java.io.Serializable;

import com.googlecode.spruce.domain.Host;
import com.googlecode.spruce.domain.ServiceResult;

public class MainDashboardDto implements Serializable
{
    /**
     * Serial ID
     */
    private static final long serialVersionUID = 560822470800325179L;

    private final Host host;
    private final ServiceResult lastError;

    public MainDashboardDto(final Host host, final ServiceResult error)
    {
        this.host = host;
        this.lastError = error;
    }

    public ServiceResult getLastError()
    {
        return lastError;
    }

    /**
     * @return the host
     */
    public Host getHost()
    {
        return host;
    }
}
